//
//  ThermostatControl.h
//  iPhoneControlApplication
//
//  Created by Elliot Chapple on 11/04/2009.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
//Boiler Override Segement controller
#define kShowBoilderOverride 0


@interface ThermostatControl : UIViewController {

	//IBOutlets for the interface
	IBOutlet	UISwitch	*hotWaterSwitch;
	IBOutlet	UISwitch	*heatingSwitch;
	IBOutlet	UILabel		*heatingTemperatureLabel;
	IBOutlet	UIButton	*heatingTempUp;
	IBOutlet	UIButton	*heatingTempDown;
	IBOutlet	UISwitch	*boilerOverride;
	IBOutlet	UIView		*boilerOverrideView;
	IBOutlet	UISlider	*heatingTempSlider;
	
}

//object properties

@property (nonatomic, retain) UISwitch		*hotWaterSwitch;
@property (nonatomic, retain) UISwitch		*heatingSwitch;
@property (nonatomic, retain) UILabel		*heatingTemperatureLabel;
@property (nonatomic, retain) UIButton		*heatingTempUp;
@property (nonatomic, retain) UIButton		*heatingTempDown;
@property (nonatomic, retain) UISwitch		*boilerOverride;
@property (nonatomic, retain) UIView		*boilerOverrideView;
@property (nonatomic, retain) UISlider		*heatingTempSlider;

//Master Methods
-(IBAction)boilerOverrideSwitchChanged:(id)sender;
-(IBAction)toggleBoilerOverride:(id)sender;
-(IBAction)tempUpButtonPressed;
-(IBAction)tempDownButtonPressed;
-(IBAction)sliderChanged:(id)sender;



@end
